<?php

$email = $_POST['email'];
$user_first_name = $_POST['first_name'];
$user_last_name = $_POST['last_name'];
$subtitle = "Un ami souhaite vous ajouter sur Agile-Face";
$message = "\n";
$message .= "Bonjour,\n";
$message .= "\n";
$message .= $user_first_name." ".$user_last_name." souhaite vous ajouter à Agile-Face";
$message .= "\n";
$message .= "\n";
$message .= "Agile-Face";

mail($email, $subtitle, $message);
header("location:../templates/invitation.php?state=success");

?>